package com.iflytek.universitymanagement.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author louyp
 * @since 2024-11-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("competition")
@ApiModel(value="Competition对象", description="")
public class Competition implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "competition_id", type = IdType.AUTO)
    private Long competitionId;  // 主键
    private String name;  // 竞赛名称
    private String description;  // 竞赛描述
    private String url;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") // 设置日期格式
    private Date startDate;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") // 设置日期格式
    private Date endDate;

}
